home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.5 Applications 1999 May
/
SGI IRIX 6.5 Applications 1999 May.iso
/
dist
/
arraysvcs.idb
/
usr
/
share
/
catman
/
p_man
/
cat3x
/
asgetattr.z
/
asgetattr
Wrap
Text File
|
1998-10-27
|
3KB
|
67 lines
aaaassssggggeeeettttaaaattttttttrrrr((((3333xxxx)))) aaaassssggggeeeettttaaaattttttttrrrr((((3333xxxx))))
NNNNAAAAMMMMEEEE
asgetattr - search an attribute list for a particular name
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<aaaarrrrrrrraaaayyyyssssvvvvccccssss....hhhh>>>>
ccccoooonnnnsssstttt cccchhhhaaaarrrr ****aaaassssggggeeeettttaaaattttttttrrrr((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****aaaattttttttrrrrnnnnaaaammmmeeee,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ********aaaattttttttrrrrssss,,,, iiiinnnntttt nnnnuuuummmmaaaattttttttrrrrssss))))
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _a_s_g_e_t_a_t_t_r function searches through a list of strings for a
particular attribute name and returns a corresponding value, similar to
the way _g_e_t_e_n_v(3C) searches through the environment for a particular
variable.
The list of strings, aaaattttttttrrrrssss, will typically have been returned by a
function such as _a_s_l_i_s_t_a_r_r_a_y_s(3X) or _a_s_l_i_s_t_m_a_c_h_i_n_e_s(3X). The argument
nnnnuuuummmmaaaattttttttrrrrssss specifies the number of strings in the list.
The attribute to be found is identified by the name aaaattttttttrrrrnnnnaaaammmmeeee. Attributes
are assumed to be of the format "NAME=VALUE", so this amounts to
searching the attributes for the first one that starts with aaaattttttttrrrrnnnnaaaammmmeeee
followed either by a null or the character "=". If NAME is not found,
NULL is returned. If the attribute is present with no value, a pointer
to a null character is returned, otherwise a pointer to VALUE is
returned.
NNNNOOOOTTTTEEEESSSS
_a_s_g_e_t_a_t_t_r is found in the library "libarray.so", and will be loaded if
the option "-larray" is used with _c_c(1) or _l_d(1).
SSSSEEEEEEEE AAAALLLLSSSSOOOO
aslistarrays(3X), aslistmachines(3X),
PPPPaaaaggggeeee 1111